<extend name="public:base" />

<block name="body">

<include file="public/bread" menu="organize_index" title="" />

<div id="page-wrapper">

    <div class="row list-header">
        <div class="col-6">
            <a href="{:url('organize/add')}" class="btn btn-outline-primary btn-sm"><i class="ion-md-add"></i> {:lang('Add Organize')}</a>
        </div>
        <div class="col-6">
            <form action="{:url('organize/search')}" method="post">
                <div class="input-group input-group-sm">
                    <input type="text" class="form-control" name="key" placeholder="{:lang('Search organize name or id')}">
                    <div class="input-group-append">
                      <button class="btn btn-outline-secondary" type="submit"><i class="ion-md-search"></i></button>
                    </div>
                </div>
            </form>
        </div>
    </div>

    <table class="table table-hover table-striped">
        <thead>
            <tr>
                <th width="50">{:lang('OG_ID')}</th>
                <th>{:lang('Organize Name')}</th>
                <th width="160">&nbsp;</th>
            </tr>
        </thead>
        <tbody>
        <volist name="organize" id="v" empty="$empty">
            <tr>
                <td>{$v.og_id}</td>
                <td>{$v.fontstyle} {$v.og_name}&nbsp;</td>
                <td class="operations">
                    <a class="btn btn-outline-primary" title="{:lang('Add Sub Organize')}" href="{:url('organize/add',array('og_id'=>$v['og_id']))}"><i class="ion-md-add"></i> </a>
                    <a class="btn btn-outline-primary" title="{:lang('Edit')}" href="{:url('organize/edit',array('og_id'=>$v['og_id']))}"><i class="ion-md-create"></i> </a>
                    <a class="btn btn-outline-danger link-confirm" title="{:lang('Delete')}" data-confirm="{:lang('Confirm to delete? The operation can not restore!')}" href="{:url('organize/delete',array('og_id'=>$v['og_id']))}"  ><i class="ion-md-trash"></i> </a>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>

</div>

</block>